package cn.itsource.pethome.base.query;

import lombok.Data;
import lombok.ToString;

@ToString
@Data
public class BaseQuery {
    /*当前页*/
    private  Integer currentPage = 1;
    /*每页条数*/
    private  Integer pageSize = 10;
    //关键字 查询
    private  String keyword;
    /*计算分页的其实行数*/
    public Integer getBegin(){
        return  (this.currentPage-1)*this.pageSize;
    }
}
